package com.market.order.common.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.market.common.core.annotation.Excel;
import com.market.common.core.web.domain.BaseEntity;

/**
 * 订单对象 t_order
 *
 * @author market
 * @date 2024-02-26
 */
public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer orderId;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal account;

    /** 订单状态：1.未发货2.已发货3.已支付4.未支付5.未取消6.已取消 */
    @Excel(name = "订单状态：1.未发货2.已发货3.已支付4.未支付5.未取消6.已取消")
    private Integer orderStatus;


    /** 备注 */
    @Excel(name = "备注")
    private String comments;

    public void setOrderId(Integer orderId)
    {
        this.orderId = orderId;
    }

    public Integer getOrderId()
    {
        return orderId;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setAccount(BigDecimal account)
    {
        this.account = account;
    }

    public BigDecimal getAccount()
    {
        return account;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }

    public void setComments(String comments)
    {
        this.comments = comments;
    }

    public String getComments()
    {
        return comments;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderTime", getOrderTime())
            .append("userId", getUserId())
            .append("account", getAccount())
            .append("orderStatus", getOrderStatus())
            .append("comments", getComments())
            .toString();
    }
}
